package org.example.trans.demos.test;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.trans.demos.model.UserInfo;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Mapper
public interface LogInfoMapper {
    @Transactional(propagation = Propagation.REQUIRED)
    @Insert("insert into log_info  values (null , #{userName});")
    int insert(UserInfo userInfo);
}
